<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${loginuser.name}的书架</title>
</head>
<body>
<%@ include file="../common/header.jsp" %>

<div>
<h3>我的书架</h3>
</div>

<div>
<hr style="border-style: dotted none none none">
<ul>

<c:forEach items="${favbooks}" var="book">
	<li>
		<p><a href="<%=request.getContextPath()%>/book/${book.id}.htm">${book.name}</a> - ￥${book.price }</p>
		<p>
			<a target="_self" href="<%=request.getContextPath()%>/fav/del?id=${book.id}">删除</a>
			<span>&nbsp;</span>
			<a target="_self" href="<%=request.getContextPath()%>/shopping/add?id=${book.id}">加入购物车</a>
		</p>
	</li>
	<hr style="border-style: dotted none none none">
</c:forEach>
</ul>
</div>

</body>
</html>